//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

public class LiveProduct implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    @TableLogic(value = "1", delval = "0")
    private Integer state;
    private Long createTime;
    private Long createUser;
    @TableField(value = "product_name", condition = SqlCondition.LIKE)
    private String productName;
    private Integer productType;
    private BigDecimal productPrice;
    private String productFeature;
    @TableField(
            exist = false
    )
    private List<LiveProductItem> items;

    public LiveProduct() {
    }

    public Long getId() {
        return this.id;
    }

    public Integer getState() {
        return this.state;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public Long getCreateUser() {
        return this.createUser;
    }

    public String getProductName() {
        return this.productName;
    }

    public Integer getProductType() {
        return this.productType;
    }

    public BigDecimal getProductPrice() {
        return this.productPrice;
    }

    public String getProductFeature() {
        return this.productFeature;
    }

    public List<LiveProductItem> getItems() {
        return this.items;
    }

    public LiveProduct setId(final Long id) {
        this.id = id;
        return this;
    }

    public LiveProduct setState(final Integer state) {
        this.state = state;
        return this;
    }

    public LiveProduct setCreateTime(final Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public LiveProduct setCreateUser(final Long createUser) {
        this.createUser = createUser;
        return this;
    }

    public LiveProduct setProductName(final String productName) {
        this.productName = productName;
        return this;
    }

    public LiveProduct setProductType(final Integer productType) {
        this.productType = productType;
        return this;
    }

    public LiveProduct setProductPrice(final BigDecimal productPrice) {
        this.productPrice = productPrice;
        return this;
    }

    public LiveProduct setProductFeature(final String productFeature) {
        this.productFeature = productFeature;
        return this;
    }

    public LiveProduct setItems(final List<LiveProductItem> items) {
        this.items = items;
        return this;
    }

    public String toString() {
        return "LiveProduct(id=" + this.getId() + ", state=" + this.getState() + ", createTime=" + this.getCreateTime() + ", createUser=" + this.getCreateUser() + ", productName=" + this.getProductName() + ", productType=" + this.getProductType() + ", productPrice=" + this.getProductPrice() + ", productFeature=" + this.getProductFeature() + ", items=" + this.getItems() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LiveProduct)) {
            return false;
        } else {
            LiveProduct other = (LiveProduct)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label119: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label119;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label119;
                    }

                    return false;
                }

                Object this$state = this.getState();
                Object other$state = other.getState();
                if (this$state == null) {
                    if (other$state != null) {
                        return false;
                    }
                } else if (!this$state.equals(other$state)) {
                    return false;
                }

                label105: {
                    Object this$createTime = this.getCreateTime();
                    Object other$createTime = other.getCreateTime();
                    if (this$createTime == null) {
                        if (other$createTime == null) {
                            break label105;
                        }
                    } else if (this$createTime.equals(other$createTime)) {
                        break label105;
                    }

                    return false;
                }

                Object this$createUser = this.getCreateUser();
                Object other$createUser = other.getCreateUser();
                if (this$createUser == null) {
                    if (other$createUser != null) {
                        return false;
                    }
                } else if (!this$createUser.equals(other$createUser)) {
                    return false;
                }

                label91: {
                    Object this$productName = this.getProductName();
                    Object other$productName = other.getProductName();
                    if (this$productName == null) {
                        if (other$productName == null) {
                            break label91;
                        }
                    } else if (this$productName.equals(other$productName)) {
                        break label91;
                    }

                    return false;
                }

                Object this$productType = this.getProductType();
                Object other$productType = other.getProductType();
                if (this$productType == null) {
                    if (other$productType != null) {
                        return false;
                    }
                } else if (!this$productType.equals(other$productType)) {
                    return false;
                }

                label77: {
                    Object this$productPrice = this.getProductPrice();
                    Object other$productPrice = other.getProductPrice();
                    if (this$productPrice == null) {
                        if (other$productPrice == null) {
                            break label77;
                        }
                    } else if (this$productPrice.equals(other$productPrice)) {
                        break label77;
                    }

                    return false;
                }

                label70: {
                    Object this$productFeature = this.getProductFeature();
                    Object other$productFeature = other.getProductFeature();
                    if (this$productFeature == null) {
                        if (other$productFeature == null) {
                            break label70;
                        }
                    } else if (this$productFeature.equals(other$productFeature)) {
                        break label70;
                    }

                    return false;
                }

                Object this$items = this.getItems();
                Object other$items = other.getItems();
                if (this$items == null) {
                    if (other$items != null) {
                        return false;
                    }
                } else if (!this$items.equals(other$items)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LiveProduct;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $state = this.getState();
        result1 = result * 59 + ($state == null ? 43 : $state.hashCode());
        Object $createTime = this.getCreateTime();
        result1 = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $createUser = this.getCreateUser();
        result1 = result * 59 + ($createUser == null ? 43 : $createUser.hashCode());
        Object $productName = this.getProductName();
        result1 = result * 59 + ($productName == null ? 43 : $productName.hashCode());
        Object $productType = this.getProductType();
        result1 = result * 59 + ($productType == null ? 43 : $productType.hashCode());
        Object $productPrice = this.getProductPrice();
        result1 = result * 59 + ($productPrice == null ? 43 : $productPrice.hashCode());
        Object $productFeature = this.getProductFeature();
        result1 = result * 59 + ($productFeature == null ? 43 : $productFeature.hashCode());
        Object $items = this.getItems();
        result1 = result * 59 + ($items == null ? 43 : $items.hashCode());
        return result1;
    }
}
